package com.bed.lovewithpatientbed.pojo;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * bed
 * @author 
 */
public class Bed implements Serializable {
    private Integer bedId;

    private BigDecimal bedPrice;

    private String bedVender;

    private Integer softdel;

    private static final long serialVersionUID = 1L;

    public Integer getBedId() {
        return bedId;
    }

    public void setBedId(Integer bedId) {
        this.bedId = bedId;
    }

    public BigDecimal getBedPrice() {
        return bedPrice;
    }

    public void setBedPrice(BigDecimal bedPrice) {
        this.bedPrice = bedPrice;
    }

    public String getBedVender() {
        return bedVender;
    }

    public void setBedVender(String bedVender) {
        this.bedVender = bedVender;
    }

    public Integer getSoftdel() {
        return softdel;
    }

    public void setSoftdel(Integer softdel) {
        this.softdel = softdel;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        Bed other = (Bed) that;
        return (this.getBedId() == null ? other.getBedId() == null : this.getBedId().equals(other.getBedId()))
            && (this.getBedPrice() == null ? other.getBedPrice() == null : this.getBedPrice().equals(other.getBedPrice()))
            && (this.getBedVender() == null ? other.getBedVender() == null : this.getBedVender().equals(other.getBedVender()))
            && (this.getSoftdel() == null ? other.getSoftdel() == null : this.getSoftdel().equals(other.getSoftdel()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getBedId() == null) ? 0 : getBedId().hashCode());
        result = prime * result + ((getBedPrice() == null) ? 0 : getBedPrice().hashCode());
        result = prime * result + ((getBedVender() == null) ? 0 : getBedVender().hashCode());
        result = prime * result + ((getSoftdel() == null) ? 0 : getSoftdel().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", bedId=").append(bedId);
        sb.append(", bedPrice=").append(bedPrice);
        sb.append(", bedVender=").append(bedVender);
        sb.append(", softdel=").append(softdel);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}